package cn.echo.ecc.dto;

import cn.echo.ecc.domain.Course;
import cn.echo.ecc.domain.CourseDetail;
import cn.echo.ecc.domain.CourseMarket;
import cn.echo.ecc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseSaveDto {

    @Valid
    private Course course;

    @Valid
    private CourseDetail courseDetail;

    @Valid
    private CourseMarket courseMarket;

    @Valid
    private CourseResource courseResource;

    @NotEmpty(message = "参数不能为空")
    private List<Long> teacherIds;

}
